package cn.wolfcode.p2p.base.mapper;

import cn.wolfcode.base.BaseMapper;
import cn.wolfcode.p2p.base.domain.LoginInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LoginInfoMapper extends BaseMapper<LoginInfo> {
    int selectCountByUsername(String username);

    LoginInfo selectByUsernameAndPassword(
            @Param("username") String username,
            @Param("password") String password,
            @Param("userType") Integer userType);

    LoginInfo selectByUsername(String username);

    void updateState(LoginInfo loginInfo);

    int selectCountByUserType(Integer userType);

    List<LoginInfo> selectCustomServices();
}